home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11.lha / libX11 / resource_list.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-22  |  1.5 KB  |  45 lines

  1. /* Copyright (c) 1996 by Terje Pedersen.  All Rights Reserved   */
  2. /*                                                              */
  3. /* By using this code you will agree to these terms:            */
  4. /*                                                              */
  5. /* 1. You may not use this code for profit in any way or form   */
  6. /*    unless an agreement with the author has been reached.     */
  7. /*                                                              */
  8. /* 2. The author is not responsible for any damages caused by   */
  9. /*    the use of this code.                                     */
  10. /*                                                              */
  11. /* 3. All modifications are to be released to the public.       */
  12. /*                                                              */
  13. /* Thats it! Have fun!                                          */
  14. /* TP                                                           */
  15. /*                                                              */
  16.  
  17. /***
  18.    NAME
  19.      resource_list
  20.    PURPOSE
  21.      
  22.    NOTES
  23.      
  24.    HISTORY
  25.      Terje Pedersen - Mar 14, 1995: Created.
  26. ***/
  27.  
  28. #ifndef RESOURCE_LIST
  29. #define RESOURCE_LIST
  30.  
  31. typedef struct lnode {
  32.   char *name;
  33.   char *data;
  34.   struct lnode *next;
  35. } listnode;
  36.  
  37. extern listnode *new(char*,char*);
  38. extern void makenull(listnode **);
  39. extern void insert(listnode**,listnode*);
  40. extern void deleteentry(listnode**,char*);
  41. extern char *findentry(listnode*,char*);
  42. extern void deletelist(listnode**);
  43.  
  44. #endif /* RESOURCE_LIST */
  45.